/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entities;

import java.util.ArrayList;

public class EventList extends ArrayList<Event> {
    public String toJSON()
    {
        StringBuilder sb = new StringBuilder("[");
        if (size() > 0)
            sb.append(get(0).toJSON());
        for (int i = 1; i < size(); ++i)
        {
            sb.append(",");
            sb.append(get(i).toJSON());
        }
        sb.append("]");
        return sb.toString();

    }
}
